
<div id="reivew">
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAALpqXS_qy3tdVrAVsuM2P8hSw7V38xWstz7lczvjaBmTaeTn8UBT2sAAT8uJOXuuM23vYvWPIynJvIg" type="text/javascript"></script>
<script src="javascript/map.js" type="text/javascript"></script>

<!-- Twitter Share -->
<div id="twitShare">
   <a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a>
   <script type="text/javascript" src="http://platform.twitter.com/widgets.js">
   </script>
</div>

<div id="report">
	<a href="report.php?id={$park_id}">Report</a>
</div>

<div id="parkDetails">
   <!-- Park Info -->
   <br/>
   <div id="parkInfo">
   
      <h2>{$name}</h2>
      <div id="parkLocation">
      	{$address}, {$suburb}, {$postcode}
      </div>
      <br/>
         <a href="{$img}" target="_blank">
      <img src="{$img}" width="230" height="150">
   </a>   
   </div>
   
   
   
   <br />
   <!-- Equipment -->
   <div id="parkEquipt">
   	<h2>Equipment and Facilities</h2>
   	<div id="equiptment">
      	{if count($equip) eq 0}
      			No Equipment
      	{else}	
      		<table class="centre">
      			{section name=i loop=$equip}	   
      				<tr >
      					<td class ="equipType">{$equip[i].name}</td>
      					<td>x {$equip[i].qty}</td>
      				</tr>	   
      			{/section}
      		</table>
      	{/if}
      </div><!--equiptment-->
   	<br/>
   </div>
</div>
<!-- Map -->

<body class="map" onload="initialize('{$name}', '{$address}', '{$suburb}')" onunload="GUnload()" style="font-family: Arial;border: 0 none;">
      <div id="map_canvas" style="width: 430px; height: 250px"></div>
</body>
<br />
<!-- FB LIKE -->
<div id="fbLike">

  <iframe src="http://www.facebook.com/plugins/like.php?href={$curURL}&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>

</div>

<br />
<br />
<br />
<br />
<br />
<br />
<br />
<!-- Comments -->
<div id="review">
	<div id="comments">
      <h2>Comments</h2>
   	{if count($comments) eq 0}
   			No comments. Be the first!
   	{else}
      	{section name=i loop=$comments}	
      	<div id="comment"> 				
      		<table class="commentTable">
      			<tr class="name">
      				<td><p>{$comments[i].name} wrote:</p></td>

      			</tr>
      			<tr class ="userPosts">
      				<td><p>{$comments[i].comment}</p></td>
      			</tr>	 
      			<tr class="delete">
      				{if $comments[i].user_id eq $user_id OR $role eq "admin"}					
      					<td><a href="commentscript.php?id={$park_id}&del={$comments[i].id}">delete</a></td>
      				{/if}
      			</tr>
      
      		</table>
         </div>
      		<br/>
      	{/section}
      	<table>
      		<tr>
      			<td>
      				{if $prevpage gt 0}
      					<a class="commentNav" href="parkdetails.php?id={$park_id}&page={$prevpage}">Prev Page</a>
      				{/if}
      			</td>
      			
      			<td>
      				{if count($comments) eq 5}
      					<a class="commentNav" href="parkdetails.php?id={$park_id}&page={$nextpage}">Next Page</a>
      				{/if}
      			</td>
      		</tr>
      	</table>
   	{/if}
	</div>
   <br/>
	
	<br/>
	<div id="rating">
      <p class"ratingMessage">
      {$commsg}
   	{$ratingmsg}
   	{$delmsg}
   	</p>
   	
      <table>
      {if $user_id eq ""}	
      		<tr><td><a href="login.php">Login</a> to post a comment and rate.</td></tr>	
      {else}
      	<form method="POST" action="commentscript.php?id={$park_id}">
      		<tr class="header">
      		    <td><h2>Enter your comment: </h2></td>
      		</tr>
            <tr>
               <td colspan="4">
               <textarea id="commentBox" name="comment" rows="3" cols="40"></textarea>
               </td>
            </tr>
      		{if $rating eq FALSE}
   			<tr class="rating">
      			<td>&nbsp;&nbsp;&nbsp;Rating:
         			<input type="radio" name="rating" value="1"> 1
         			<input type="radio" name="rating" value="2"> 2
         			<input type="radio" name="rating" value="3"> 3
         			<input type="radio" name="rating" value="4"> 4
         			<input type="radio" name="rating" value="5"> 5
      			</td>
   			</tr>
   			<tr><td><br/></td></tr>
      		{else}
            <tr class="yourRating">
               <td><p>Your rating: {$rating}</p></td>
            </tr>
      		{/if}
      		<tr class="ratingSubmit">
      		    <td><input class="ratingSubmit" type="submit" value="Submit">
      		        <input class="ratingReset" type="Reset">
                </td>
            </tr>	
      	</form>
      {/if}	
      </table>
   </div>
</div> <!-- END REVIEW-->


